﻿using System;
using System.Collections.Generic;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;

namespace Ecreate.Web.systemanage.news
{
    public partial class luckinfolist : System.Web.UI.Page
    {
        protected void Page_Load(object sender, EventArgs e)
        {
            if (!IsPostBack)
            {
                BindData();
            }
        }

        private void BindData()
        {
            string sql = "select id,luck_name,luck_tel,luck_money from t_luck_info";
            gv.DataSource = usercontrol.GG.GetTable(sql);
            gv.DataBind();
        }

        protected void btnAdd_Click(object sender, EventArgs e)
        {
            Response.Redirect("luckinfo.aspx");
        }
    }
}
